﻿namespace ScrumLite.Data
{
    using System;
    using System.Collections.Generic;

    public interface IDefectStore
    {        
        int RetrieveLastMoniker(Guid projectId);

        void Update(Defect entity);
        void Add(Defect entity);
        void Delete(Guid defectId);
        Defect RetrieveDefect(Guid defectId);
        Defect RetrieveDefect(string projectId, int moniker);
        Defect[] RetrieveDefects(Guid projectId, bool triaged);        
    }
}
